<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
       *{margin:0px;padding: 0px;}
       .nav{
           line-height: 50px;
           background: #FFC0CB;
           font-size: 0;
           height: 50px;;
       }
       .nav a{
           color: #fff;
           text-decoration: none;
           display: inline-block;
           font-size: 17px;
           width: 100px;
           text-align: center;
       }
       a:hover{
           background-color: #FF1493;
       }
    
    </style>
</head>
<body>
     <div class="nav">
         <a href="#">手机</a>
         <a href="#">平板</a>
         <a href="#">电脑</a>
     </div>
</body>
</html>